Images loading in IE(7), but not in Firefox

5 views
Skip to first unread message

webconstructor

unread,
Jun 11, 2010, 7:59:15 AM6/11/10
to SWFObject
My customer is using SWFObject 2.2. The images (loaded from the SWF)
are loading in IE(7) but not in Firefox. I tried every possibility,
without success.

http://www.rpghive.com/

Check IE7 and Firefox to see the difference.

Sam Sherlock

unread,
Jun 11, 2010, 10:40:14 AM6/11/10
to swfo...@googlegroups.com
the base param is set wrong

try changing :

to:
<param name="base" value="./" /> 


you might have to tweak this again depending on the structure of your folders - the above sets flash to look for required files (xml images etc from the location of the the html that embeds the flash)

you need to change this param for both the outter and nested object

also this class="swfobj.js" can be removed its not the problem (but I would remove it anyway)

also for me in firefox the images are being loaded but don't show



so I think something else is going on to cause your issue

- S




--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.


Xander @ VideoFunk

unread,
Jun 11, 2010, 11:51:10 AM6/11/10
to swfo...@googlegroups.com
Try embedding your movies like this:






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

<title>Your site</title>







<style type="text/css" media="screen">

html, body{

margin:0;

padding:0;

height:100%;

overflow:hidden;

background:#000000;

}

#flashContainer{

height:693px;

}

</style>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">

//<![CDATA[



function setFlashSize(flashWidth,flashHeight){

var size = [0,0];

if( typeof( window.innerWidth ) == 'number' ) {

size = [window.innerWidth, window.innerHeight];

} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

size = [document.documentElement.clientWidth, document.documentElement.clientHeight];

} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

size = [document.body.clientWidth, document.body.clientHeight];

}

window.onresize = function() {

document.getElementById("flashContainer").style.minWidth = flashWidth+"px";

document.getElementById("flashContainer").style.minHeight = flashHeight+"px";

document.getElementById("flashContainer").style.width = size[0] < flashWidth ? flashWidth+"px" : "100%";

document.getElementById("flashContainer").style.height = size[1] < flashHeight ? flashHeight+"px" : "100%";

};

window.onload = function(){

window.onresize();

}

}

var params = {};

params.scale = "noscale";

params.allowfullscreen = "true";

params.allowscriptaccess = "always";

params.wmode = "transparent";





swfobject.embedSWF("index.swf", "flashMovie", "100%", "693", "9.0.0","expressInstall.swf", false,params,false);



setFlashSize(600,400); //set the minimum width and height of your Flash movie



//]]>

</script>

<script type="text/javascript">

$(document).ready(function(){

$('#flashContainer').CenterIt();

});



</script>





</head>

<body>



<div id="flashContainer">

<div id="flashMovie">

<h1>Alternative flashMovie</h1>

<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

</div>

</div>



</body>

</html>

webconstructor

unread,
Jun 12, 2010, 11:30:01 AM6/12/10
to SWFObject
On 11 Jun., 16:40, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> the base param is set wrong
>
> try changing :
> <param name="base" value="http://www.rpghive.com/images/stories/videos/Header_mod.swf" />
>
> to:
> <param name="base" value="./" />
>

That was one of the first things I changed: http://www.rpghive.com/images/stories/videos/
. But the images will still not load in Firefox.

Xander: Try embedding your movies like this...

I build a test page on http://www.webconstruction.ch/tests/images-not-loading-in-firefox.htm
without success. Please check, maybe I missed something.

Thanks very much for all your effort.

Best regards,

webconstructor

webconstructor

unread,
Jun 12, 2010, 11:28:44 AM6/12/10
to SWFObject
On 11 Jun., 16:40, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> the base param is set wrong
>
> try changing :
> <param name="base" value="http://www.rpghive.com/images/stories/videos/Header_mod.swf" />
>
> to:
> <param name="base" value="./" />
>

webconstructor

unread,
Jun 12, 2010, 11:56:42 AM6/12/10
to SWFObject
On 11 Jun., 16:40, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> the base param is set wrong

This is the first I tried to change. But without success, the images

Xander @ VideoFunk

unread,
Jun 12, 2010, 3:19:08 PM6/12/10
to swfo...@googlegroups.com
I can see that you do not read a lot. There is a Javascript code  flashcontainer Center it.
You do not use Jquery and do not have the Jquery center it plugin loaded. So just remove it. It will not help you.

webconstructor

unread,
Jun 13, 2010, 4:24:10 AM6/13/10
to SWFObject
On 12 Jun., 21:19, "Xander @ VideoFunk" <i...@universalvideofunk.com>
wrote:
I removed the center function. See http://www.webconstruction.ch/tests/images-not-loading-in-firefox.htm

It doesn't seem to work.

Could you please explain your suggested sollution. And why it should
work.

Xander @ VideoFunk

unread,
Jun 13, 2010, 5:30:42 AM6/13/10
to swfo...@googlegroups.com

webconstructor

unread,
Jun 13, 2010, 4:12:27 PM6/13/10
to SWFObject
What do you think is wrong? Do you think it's because of the static
embedding instead of the dynamic embedding? Or a wrong CSS usage? I've
embedded the file like explained in your link but without success.

http://www.webconstruction.ch/tests/images-not-loading-in-firefox2.htm

On 13 Jun., 11:30, "Xander @ VideoFunk" <i...@universalvideofunk.com>
wrote:
> Could you please try this:http://www.thetechlabs.com/tutorials/flash/swfobject-and-best-practic...
> That should work.
>
> On Sun, Jun 13, 2010 at 10:24 AM, webconstructor <meltsem...@gmail.com>wrote:
>
> > On 12 Jun., 21:19, "Xander @ VideoFunk" <i...@universalvideofunk.com>
> > wrote:
> > > I can see that you do not read a lot. There is a Javascript code
> > > flashcontainer Center it.
> > > You do not use Jquery and do not have the Jquery center it plugin loaded.
> > So
> > > just remove it. It will not help you.
>
> > I removed the center function. See
> >http://www.webconstruction.ch/tests/images-not-loading-in-firefox.htm
>
> > It doesn't seem to work.
>
> > Could you please explain your suggested sollution. And why it should
> > work.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to swfo...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > swfobject+...@googlegroups.com<swfobject%2Bunsu...@googlegroups.com>
> > .

Xander @ VideoFunk

unread,
Jun 14, 2010, 1:07:54 AM6/14/10
to swfo...@googlegroups.com
What happens when you pubblish HTML from flash ? Can you see it then ?




To unsubscribe from this group, send email to swfobject+...@googlegroups.com.

Xander @ VideoFunk

unread,
Jun 14, 2010, 1:10:24 AM6/14/10
to swfo...@googlegroups.com
I can see the main image...  are you sure it did not work ?
Reply all
Reply to author
Forward
0 new messages